<meta charset="UTF-8">
<input type="button" value="关闭" onclick="guanBi()" />
<input type="button" value="打印" onclick="daYin()" />
<script>
    function guanBi(){
        window.close();
    }

    function daYin(){
        window.print();
    }
</script>
